.class public Lcom/uucun/adsdk/c/a;
.super Lcom/uucun/adsdk/c/j;


# static fields
.field public static final a:Ljava/lang/String;


# instance fields
.field private d:Lcom/uucun/adsdk/c/i;

.field private e:Landroid/content/Context;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    const-class v0, Lcom/uucun/adsdk/c/a;

    invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/uucun/adsdk/c/a;->a:Ljava/lang/String;

    return-void
.end method

.method public constructor <init>(Ljava/lang/String;Landroid/content/Context;Lcom/uucun/adsdk/c/i;)V
    .locals 0

    invoke-direct {p0, p2}, Lcom/uucun/adsdk/c/j;-><init>(Landroid/content/Context;)V

    iput-object p1, p0, Lcom/uucun/adsdk/c/a;->b:Ljava/lang/String;

    iput-object p2, p0, Lcom/uucun/adsdk/c/a;->e:Landroid/content/Context;

    iput-object p3, p0, Lcom/uucun/adsdk/c/a;->d:Lcom/uucun/adsdk/c/i;

    return-void
.end method

.method static synthetic a(Lcom/uucun/adsdk/c/a;)Lcom/uucun/adsdk/c/i;
    .locals 1

    iget-object v0, p0, Lcom/uucun/adsdk/c/a;->d:Lcom/uucun/adsdk/c/i;

    return-object v0
.end method

.method static synthetic a(Lcom/uucun/adsdk/c/a;Lcom/uucun/adsdk/d/e;)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/uucun/adsdk/c/a;->a(Lcom/uucun/adsdk/d/e;)V

    return-void
.end method

.method private a(Lcom/uucun/adsdk/d/e;)V
    .locals 4

    iget-object v0, p1, Lcom/uucun/adsdk/d/e;->d:Landroid/graphics/Bitmap;

    if-eqz v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    sget-object v0, Lcom/uucun/adsdk/c/a;->a:Ljava/lang/String;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, " Download AD ID : "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p1, Lcom/uucun/adsdk/d/e;->c:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "  "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p1, Lcom/uucun/adsdk/d/e;->j:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "  Image Url:"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p1, Lcom/uucun/adsdk/d/e;->b:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/uucun/adsdk/b/h;->c(Ljava/lang/String;Ljava/lang/String;)V

    iget-object v0, p1, Lcom/uucun/adsdk/d/e;->b:Ljava/lang/String;

    iget-object v1, p0, Lcom/uucun/adsdk/c/a;->e:Landroid/content/Context;

    invoke-static {v0, v1}, Lcom/uucun/adsdk/b/c;->b(Ljava/lang/String;Landroid/content/Context;)[B

    move-result-object v0

    if-eqz v0, :cond_0

    array-length v1, v0

    if-lez v1, :cond_0

    :try_start_0
    iget-object v1, p0, Lcom/uucun/adsdk/c/a;->e:Landroid/content/Context;

    invoke-static {v1}, Lcom/uucun/adsdk/b/c;->a(Landroid/content/Context;)Ljava/io/File;

    move-result-object v1

    iget-object v2, p1, Lcom/uucun/adsdk/d/e;->b:Ljava/lang/String;

    invoke-static {v2}, Lcom/uucun/adsdk/b/c;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    new-instance v3, Ljava/io/File;

    invoke-direct {v3, v1, v2}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V

    invoke-static {v0, v3}, Lcom/uucun/adsdk/b/c;->a([BLjava/io/File;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_0
.end method


# virtual methods
.method public a(Ljava/lang/String;)Ljava/util/ArrayList;
    .locals 1

    invoke-static {p1}, Lcom/uucun/adsdk/b/i;->c(Ljava/lang/String;)Ljava/util/ArrayList;

    move-result-object v0

    return-object v0
.end method

.method protected varargs a([Lorg/json/JSONObject;)Ljava/util/ArrayList;
    .locals 2

    const/4 v0, 0x0

    :try_start_0
    aget-object v0, p1, v0

    iget-object v1, p0, Lcom/uucun/adsdk/c/a;->e:Landroid/content/Context;

    invoke-static {v0, v1}, Lcom/uucun/adsdk/b/c;->a(Lorg/json/JSONObject;Landroid/content/Context;)V

    const/4 v0, 0x0

    aget-object v0, p1, v0

    invoke-virtual {p0, v0}, Lcom/uucun/adsdk/c/a;->a(Lorg/json/JSONObject;)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Ljava/util/ArrayList;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-object v0, p0

    :goto_0
    return-object v0

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    const/4 v0, 0x0

    goto :goto_0
.end method

.method protected a(Ljava/util/ArrayList;)V
    .locals 3

    if-eqz p1, :cond_0

    invoke-virtual {p1}, Ljava/util/ArrayList;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_1

    :cond_0
    iget-object v0, p0, Lcom/uucun/adsdk/c/a;->d:Lcom/uucun/adsdk/c/i;

    invoke-interface {v0}, Lcom/uucun/adsdk/c/i;->a()V

    :goto_0
    return-void

    :cond_1
    sget-object v0, Lcom/uucun/adsdk/c/a;->a:Ljava/lang/String;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "AD SIZE:"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {p1}, Ljava/util/ArrayList;->size()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/uucun/adsdk/b/h;->b(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {p1}, Ljava/util/ArrayList;->size()I

    move-result v0

    new-instance v1, Lcom/uucun/adsdk/c/f;

    invoke-direct {v1, p0, p1, v0}, Lcom/uucun/adsdk/c/f;-><init>(Lcom/uucun/adsdk/c/a;Ljava/util/ArrayList;I)V

    invoke-virtual {v1}, Lcom/uucun/adsdk/c/f;->start()V

    goto :goto_0
.end method

.method public bridge synthetic b(Ljava/lang/String;)Ljava/lang/Object;
    .locals 1

    invoke-virtual {p0, p1}, Lcom/uucun/adsdk/c/a;->a(Ljava/lang/String;)Ljava/util/ArrayList;

    move-result-object v0

    return-object v0
.end method

.method protected bridge synthetic doInBackground([Ljava/lang/Object;)Ljava/lang/Object;
    .locals 1

    check-cast p1, [Lorg/json/JSONObject;

    invoke-virtual {p0, p1}, Lcom/uucun/adsdk/c/a;->a([Lorg/json/JSONObject;)Ljava/util/ArrayList;

    move-result-object v0

    return-object v0
.end method

.method protected bridge synthetic onPostExecute(Ljava/lang/Object;)V
    .locals 0

    check-cast p1, Ljava/util/ArrayList;

    invoke-virtual {p0, p1}, Lcom/uucun/adsdk/c/a;->a(Ljava/util/ArrayList;)V

    return-void
.end method
